package com.exam.paper.pojo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @ClassName : Score
 * @Description :
 * @Author : WHB
 */
@Data
@Table(name = "exam_score")
public class Score {

    @Id
    @KeySql(useGeneratedKeys = true)
    private Integer id;
    private Integer testId;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long userId;
    private String score;
}
